<?php /* Smarty version 2.6.11, created on 2011-06-20 17:44:37
         compiled from classified_edit.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'math', 'classified_edit.php', 62, false),array('modifier', 'str_repeat', 'classified_edit.php', 63, false),array('modifier', 'date_format', 'classified_edit.php', 98, false),array('modifier', 'default', 'classified_edit.php', 102, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style/css/common.css" type="text/css" />
<LINK href="style/css/jquery-ui-1.7.2.custom.min.css" type=text/css rel=stylesheet>
<SCRIPT src="style/js/jquery-1.4.2.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/jquery-ui-1.8.6.custom.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/main.js" type=text/javascript></SCRIPT>
<title>管理区域</title>
</head>
<body>
<div id="man_zone">

<table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
<form id="form1" name="form1" method="post" action="">
  <tr>
    <td align="right">信息类型</td>
    <td>
      <select name="type">
      	<?php $_from = $this->_tpl_vars['infotype']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['val']):
?>
        <option value="<?php echo $this->_tpl_vars['val']['name']; ?>
"><?php echo $this->_tpl_vars['val']['name']; ?>
</option>
        <?php endforeach; endif; unset($_from); ?>
      </select>  <a href="index.php?m=infotype" target="_blank">修改信息类型模型</a>
    </td>
  </tr>
  <tr>
    <td align="right">标题</td>
    <td><input type="text" name="title" value="<?php echo $this->_tpl_vars['classified']['title']; ?>
"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">审核</td>
    <td>
    <input name="audit" type="checkbox" value="1" <?php if ($this->_tpl_vars['classified']['audit']): ?>checked="checked"<?php endif; ?>>
    </td>
  </tr>
  <tr>
    <td align="right">自定义属性</td>
    <td>
      <label>
      	头条<input name="flag[]" type="checkbox" id="checkbox"<?php if ($this->_tpl_vars['classified']['flag'] && in_array ( 'h' , $this->_tpl_vars['classified']['flag'] )): ?> checked="checked"<?php endif; ?> value="h" />
      </label>
      <label>
      	推荐<input name="flag[]" type="checkbox" id="checkbox" <?php if ($this->_tpl_vars['classified']['flag'] && in_array ( 'c' , $this->_tpl_vars['classified']['flag'] )): ?> checked="checked"<?php endif; ?> value="c" />
      </label>
      <label>
      	幻灯<input name="flag[]" type="checkbox" id="checkbox"<?php if ($this->_tpl_vars['classified']['flag'] && in_array ( 'f' , $this->_tpl_vars['classified']['flag'] )): ?> checked="checked" <?php endif; ?> value="f" />
      </label>
      <label>
      	特荐<input name="flag[]" type="checkbox" id="checkbox"<?php if ($this->_tpl_vars['classified']['flag'] && in_array ( 'a' , $this->_tpl_vars['classified']['flag'] )): ?> checked="checked"<?php endif; ?> value="a" />
      </label>
      <label>
      	图片<input name="flag[]" type="checkbox" id="checkbox"<?php if ($this->_tpl_vars['classified']['flag'] && in_array ( 'p' , $this->_tpl_vars['classified']['flag'] )): ?> checked="checked"<?php endif; ?> value="p" />
      </label>
    </td>
  </tr>
   <tr>
     <td align="right">所属栏目</td>
     <td>
       <select name="classid">
         <?php $_from = $this->_tpl_vars['columns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['val']):
?>
         <?php echo smarty_function_math(array('equation' => "(x*y)",'x' => $this->_tpl_vars['val']['level'],'y' => 1,'assign' => 'le'), $this);?>

         <option value="<?php echo $this->_tpl_vars['val']['classid']; ?>
"<?php if ($this->_tpl_vars['val']['classid'] == $this->_tpl_vars['classified']['classid']): ?> selected="selected"<?php endif; ?>><?php echo ((is_array($_tmp='——')) ? $this->_run_mod_handler('str_repeat', true, $_tmp, $this->_tpl_vars['le']) : str_repeat($_tmp, $this->_tpl_vars['le']));  echo $this->_tpl_vars['val']['classname']; ?>
</option>
         <?php endforeach; endif; unset($_from); ?>
         </select>
       </td>
   </tr>
  <tr>
    <td align="right">图片</td>
    <td><input type="text" name="pic" value="<?php echo $this->_tpl_vars['classified']['pic']; ?>
"  size="60" /></td>
  </tr>
  <tr>
    <td align="right">联系人</td>
    <td><input type="text" name="contact" value="<?php echo $this->_tpl_vars['classified']['contact']; ?>
"  /></td>
  </tr>
  <tr>
    <td align="right">联系电话</td>
    <td><input type="text" name="tel" value="<?php echo $this->_tpl_vars['classified']['tel']; ?>
"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">QQ号码</td>
    <td><input type="text" name="qq" value="<?php echo $this->_tpl_vars['classified']['qq']; ?>
"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">联系邮箱</td>
    <td><input type="text" name="email" value="<?php echo $this->_tpl_vars['classified']['email']; ?>
"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">所在地</td>
    <td><input type="text" name="location" value="<?php echo $this->_tpl_vars['classified']['location']; ?>
"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">联系地址</td>
    <td><input type="text" name="address" value="<?php echo $this->_tpl_vars['classified']['address']; ?>
"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">过期日期</td>
    <td><input type="text" class="datepicker" name="passdate" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['classified']['passdate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
"  size="60" /></td>
  </tr>
   <tr>
    <td align="right">发布人IP</td>
    <td><input type="text" name="ip" value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['classified']['ip'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['ip']) : smarty_modifier_default($_tmp, @$this->_tpl_vars['ip'])); ?>
"  size="60"  /></td>
  </tr>
   <tr>
    <td align="right">信息简介</td>
    <td>
      <textarea name="info" id="info" cols="45" rows="5"><?php echo $this->_tpl_vars['classified']['info']; ?>
</textarea></td>
  </tr>
  <tr>
    <td align="right"> 信息内容 </td>
    <td><textarea name="content" id="content" cols="45" rows="5"><?php echo $this->_tpl_vars['classified']['content']; ?>
</textarea></td>
  </tr>
  <tr>
    <td colspan="2">
    <input type="hidden" name="referrer" id="referrer" value="" />
    <input type="hidden" name="aid" value="<?php echo $this->_tpl_vars['classified']['aid']; ?>
" />
    <input name="preview" type="button" value="预览" />
    <input name="" type="submit" value="提交" />
    </td>
  </tr>
  </form>
</table>

</div>
<SCRIPT src="style/js/ckeditor/ckfinder/ckfinder.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/ckeditor/ckeditor.js" type=text/javascript></SCRIPT>
<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace('content');
CKFinder.SetupCKEditor(CKEDITOR, 'style/js/ckeditor/ckfinder/');
document.getElementById("referrer").value = document.referrer;
//]]>
if (typeof(parent.restIframe)!=='undefined') setTimeout(function(){parent.restIframe();},500);
</script>
</body>
</html>